<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="true" %>
<%@ page import="javax.portlet.*" %>
<%@page import ="rai.dto.*" %>
<%@page import ="rai.dao.*" %>
<%@page import = "java.util.*" %>

<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<portlet:defineObjects/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Personal Information Tracking System</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<script type="text/javascript" src='<%= request.getContextPath() + "/js/calendarDateInput.js" %>'></script>
<script type="text/javascript">
    function getForm(namespace, name) {
        return document.forms[namespace + name];
    }
    function back_to_emp_info_form(namespace, name) {
        var frm = getForm(namespace, name);
        frm.txtAction.value = "back_to_empInfo_form_2";
        frm.submit();
    }
    function back_to_login(namespace, name) {
		var frm = getForm(namespace, name);
		frm.txtAction.value = "back_to_login_form";
		frm.submit();
	}
	
</script>
<link href='<%=request.getContextPath() + "/css/style.css" %>' rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<form name="<portlet:namespace/>pmViewPrj" action="<portlet:actionURL/>" method="POST">
<input type="hidden" name="txtAction"></input>
<table>
	<% ProjectEmpInfoDTO prjInfo = (ProjectEmpInfoDTO) session.getAttribute("prjInfo");
	%>
	<tr class="title">
	
			<td colspan="2">		
					<h1><a href="#">Personal information tracking system </a></h1>
					<p>exploit the value of data</p>
					<hr />

			</td>
	</tr>
	<tr>
			<td colspan="2" align="left"> Welcome, <font color="orange"/><b>[${sessionScope.role}]${sessionScope.name}</b></font>
		| <a href="#" onclick="back_to_emp_info_form('<portlet:namespace/>','pmViewPrj')">Home</a>
		| <a href="#" onclick="back_to_login('<portlet:namespace/>','pmViewPrj')">Logout</a>
			
	   </td>
	</tr>
	<tr>	
		<td>
			<table border="1">
				<tr>
					<td><h2 class="title">Project  Information</h2></td>

				</tr>
				<tr>
					<td><p><em>General Information </em></p></td>
				</tr>	
				
				<tr>
					<td>
						<table border="1" width="100%">	
													
							<tr>
							  <td align="left" valign="bottom">&nbsp;Project Name</td>

							  <td align="left" valign="middle" colspan="6"><%=prjInfo.getSname() %></td>							  							 						  </tr><tr>
							  <td align="left" valign="bottom">&nbsp;Project's Description&nbsp;</td>
							  <td align="left" valign="middle" colspan="6"><%=prjInfo.getDes() %></td>							  							</tr>
							<tr style="width: 585px">
							  <td align="left" valign="bottom">&nbsp;Company&nbsp;</td>
							  <td colspan="3" align="left" valign="middle" style="width: 238px; height: 26px"><%=prjInfo.getCompany() %></td>							
							  <td colspan="3" align="left" valign="middle" style="width: 208px">Department: <%=prjInfo.getDept() %></td>
							  
						  </tr>
							<tr>

							  <td align="left" valign="middle" rowspan="2">&nbsp;Project's Period&nbsp;</td>
							  <td colspan="3" align="left" valign="bottom">From:       </td>
							  <td colspan="3" align="left" valign="middle"> <%=prjInfo.getStart() %></td>
							   							 
						  </tr>
						  <tr>
							  	<td colspan="3" align="left" valign="bottom">To:       </td>
							  	<td colspan="3" align="left" valign="middle"> <%=prjInfo.getEnd() %></td>

						  </tr>
						  <tr>
							  	<td align="left" valign="bottom">&nbsp;Size&nbsp;</td>
						  		<td colspan="6" align="left" valign="middle"><%=prjInfo.getSize() %></td>
						  </tr>

						  <tr>
							  <td align="left" valign="bottom" colspan="7"><em>&nbsp;Technology Information&nbsp;</em></td>							  
						  </tr>
						  <tr>
							  <td align="left" valign="bottom">&nbsp;Language&nbsp;</td>
							  <td colspan="6" align="left" valign="bottom"><%=prjInfo.getLang() %></td>
							  			  
						  </tr>
						  <tr>
							  <td align="left" valign="bottom">&nbsp;Type of Application &nbsp;</td>
							  <td colspan="6" align="left" valign="bottom"><%=prjInfo.getApp() %></td>

							  
								
						  </tr>
						  <tr>
							  <td align="left" valign="bottom">&nbsp;Kind of Technology and Framework&nbsp;</td>

							   <td colspan="6" align="left" valign="bottom"><%=prjInfo.getFrw() %></td>
							  
								
						  </tr>
						  

						  <tr align="left" valign="bottom">
						  	  <td colspan="7"><input type="button" name="btnBack" value="Ok" onclick = "back_to_emp_info_form('<portlet:namespace/>','pmViewPrj')"/></td>
						  </tr>
				    </table>					</td>
				</tr>
			</table>			
		</td>

	</tr>
	<tr>
		<td colspan="2">
			<div style="clear: both;">&nbsp;</div>
			<div id="footer"><p>Development by HCMUT-Group3.</p>
			</div>
		</td>
	</tr>
</table>
</form>
</body>
</html>
